using System;
using System.Collections.Generic;
using System.Text;
using DTN.Core.Utilities;
using System.Data.SqlClient;
using System.Data;
namespace com.dtn.deals
{
	public class tbl_Partner
	{
		private System.Int32 _ID;
		public System.Int32 ID
		{
			get { return this._ID; }		
			set { this._ID = value; }
		}
		private System.String _pName;
		public System.String pName
		{
			get { return this._pName; }		
			set { this._pName = value; }
		}
		private System.Int32 _pParent;
		public System.Int32 pParent
		{
			get { return this._pParent; }		
			set { this._pParent = value; }
		}
		private System.Int32 _rankMem;
		public System.Int32 rankMem
		{
			get { return this._rankMem; }		
			set { this._rankMem = value; }
		}
		private System.Int32 _rankAdmin;
		public System.Int32 rankAdmin
		{
			get { return this._rankAdmin; }		
			set { this._rankAdmin = value; }
		}
		private System.String _Info;
		public System.String Info
		{
			get { return this._Info; }		
			set { this._Info = value; }
		}
		private System.Int32 _cityId;
		public System.Int32 cityId
		{
			get { return this._cityId; }		
			set { this._cityId = value; }
		}
		private System.String _contact;
		public System.String contact
		{
			get { return this._contact; }		
			set { this._contact = value; }
		}
		private System.Int32 _isDel;
		public System.Int32 isDel
		{
			get { return this._isDel; }		
			set { this._isDel = value; }
		}
		private System.DateTime _cDate;
		public System.DateTime cDate
		{
			get { return this._cDate; }		
			set { this._cDate = value; }
		}

        private System.String _logo;

        public System.String Logo
        {
            get { return _logo; }
            set { _logo = value; }
        }

        private System.String _loginName;

        public System.String LoginName
        {
            get { return _loginName; }
            set { _loginName = value; }
        }

        private System.String _pass;

        public System.String Pass
        {
            get { return _pass; }
            set { _pass = value; }
        }
        private System.String _path;
        public System.String path
        {
            get { return this._path; }
            set { this._path = value; }
        }

        private System.Int32 _totalOrder;
        public System.Int32 totalOrder
        {
            get { return this._totalOrder; }
            set { this._totalOrder = value; }
        }

        private System.Int32 _province;

        public System.Int32 Province
        {
            get { return _province; }
            set { _province = value; }
        }
        private System.String _area;

        public System.String Area
        {
            get { return _area; }
            set { _area = value; }
        }

        private System.Int32 _like;

        public System.Int32 Like
        {
            get { return _like; }
            set { _like = value; }
        }
        private System.Int32 _share;

        public System.Int32 Share
        {
            get { return _share; }
            set { _share = value; }
        }
        private System.Int32 _sOder;

        public System.Int32 SOder
        {
            get { return _sOder; }
            set { _sOder = value; }
        }

        private System.Int32 _cateId;

        public System.Int32 CateId
        {
            get { return _cateId; }
            set { _cateId = value; }
        }

        private double ratingServices;
        public double RatingServices
        {
            get { return ratingServices; }
            set { ratingServices = value; }
        }

        private int ratingServicesCount;
        public int RatingServicesCount
        {
            get { return ratingServicesCount; }
            set { ratingServicesCount = value; }
        }

        private double ratingQuality;
        public double RatingQuality
        {
            get { return ratingQuality; }
            set { ratingQuality = value; }
        }

        private int ratingQualityCount;
        public int RatingQualityCount
        {
            get { return ratingQualityCount; }
            set { ratingQualityCount = value; }
        }

        private double ratingLandscape;
        public double RatingLandscape
        {
            get { return ratingLandscape; }
            set { ratingLandscape = value; }
        }

        private int ratingLandscapeCount;
        public int RatingLandscapeCount
        {
            get { return ratingLandscapeCount; }
            set { ratingLandscapeCount = value; }
        }

        private double ratingPrice;
        public double RatingPrice
        {
            get { return ratingPrice; }
            set { ratingPrice = value; }
        }

        private int ratingPriceCount;
        public int RatingPriceCount
        {
            get { return ratingPriceCount; }
            set { ratingPriceCount = value; }
        }
        private string phone;
        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        private string imageGMap ;
        public string ImageGMap
        {
            get { return imageGMap;}
            set { imageGMap = value;}
        }
        private System.Int32 _totalfollowUs;

        public System.Int32 totalfollowUs
        {
            get { return _totalfollowUs; }
            set { _totalfollowUs = value; }
        }

        public tbl_Partner()
        {
        }
        public tbl_Partner(DataRow info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _pName = ConvertUtility.ToString(info["pName"]);
            _rankMem = ConvertUtility.ToInt32(info["rankMem"]);
            _rankAdmin = ConvertUtility.ToInt32(info["rankAdmin"]);
            _Info = ConvertUtility.ToString(info["Info"]);
            _cityId = ConvertUtility.ToInt32(info["cityId"]);
            _province = Convert.ToInt32(info["provinceId"]);
            _contact = ConvertUtility.ToString(info["contact"]);
            _logo = ConvertUtility.ToString(info["Logo"]);
            _path = ConvertUtility.ToString(info["path"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _totalOrder = ConvertUtility.ToInt32(info["totalOrder"]);
            ratingServices = ConvertUtility.ToDouble(info["RatingServices"]);
            ratingServicesCount = ConvertUtility.ToInt32(info["RatingServicesCount"]);
            ratingQuality = ConvertUtility.ToDouble(info["RatingQuality"]);
            ratingQualityCount = ConvertUtility.ToInt32(info["RatingQualityCount"]);
            ratingLandscape = ConvertUtility.ToDouble(info["RatingLandscape"]);
            ratingLandscapeCount = ConvertUtility.ToInt32(info["RatingLandscapeCount"]);
            ratingPrice = ConvertUtility.ToDouble(info["RatingPrice"]);
            ratingPriceCount = ConvertUtility.ToInt32(info["RatingPriceCount"]);
            phone = Convert.ToString(info["Phone"]);
            imageGMap = Convert.ToString(info["ImageGMap"]);
            _area = Convert.ToString(info["areaId"]);
            _totalfollowUs = Convert.ToInt32(info["totalFollowUs"]);
        }
        public tbl_Partner(DataRowView info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _pName = ConvertUtility.ToString(info["pName"]);
            _rankMem = ConvertUtility.ToInt32(info["rankMem"]);
            _rankAdmin = ConvertUtility.ToInt32(info["rankAdmin"]);
            _Info = ConvertUtility.ToString(info["Info"]);
            _cityId = ConvertUtility.ToInt32(info["cityId"]);
            _province = Convert.ToInt32(info["provinceId"]);
            _contact = ConvertUtility.ToString(info["contact"]);
            _logo = ConvertUtility.ToString(info["Logo"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _path = ConvertUtility.ToString(info["path"]);
            _totalOrder = ConvertUtility.ToInt32(info["totalOrder"]);
            ratingServices = ConvertUtility.ToDouble(info["RatingServices"]);
            ratingServicesCount = ConvertUtility.ToInt32(info["RatingServicesCount"]);
            ratingQuality = ConvertUtility.ToDouble(info["RatingQuality"]);
            ratingQualityCount = ConvertUtility.ToInt32(info["RatingQualityCount"]);
            ratingLandscape = ConvertUtility.ToDouble(info["RatingLandscape"]);
            ratingLandscapeCount = ConvertUtility.ToInt32(info["RatingLandscapeCount"]);
            ratingPrice = ConvertUtility.ToDouble(info["RatingPrice"]);
            ratingPriceCount = ConvertUtility.ToInt32(info["RatingPriceCount"]);
            phone = Convert.ToString(info["Phone"]);
            imageGMap = Convert.ToString(info["ImageGMap"]);
            _area = Convert.ToString(info["areaId"]);
            _totalfollowUs = Convert.ToInt32(info["totalFollowUs"]);
        }
        public tbl_Partner(SqlDataReader info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _pName = ConvertUtility.ToString(info["pName"]);
            _rankMem = ConvertUtility.ToInt32(info["rankMem"]);
            _rankAdmin = ConvertUtility.ToInt32(info["rankAdmin"]);
            _Info = ConvertUtility.ToString(info["Info"]);
            _cityId = ConvertUtility.ToInt32(info["cityId"]);
            _province = Convert.ToInt32(info["provinceId"]);
            _contact = ConvertUtility.ToString(info["contact"]);
            _logo = ConvertUtility.ToString(info["Logo"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
            _path = ConvertUtility.ToString(info["path"]);
            _totalOrder = ConvertUtility.ToInt32(info["totalOrder"]);
            ratingServices = ConvertUtility.ToDouble(info["RatingServices"]);
            ratingServicesCount = ConvertUtility.ToInt32(info["RatingServicesCount"]);
            ratingQuality = ConvertUtility.ToDouble(info["RatingQuality"]);
            ratingQualityCount = ConvertUtility.ToInt32(info["RatingQualityCount"]);
            ratingLandscape = ConvertUtility.ToDouble(info["RatingLandscape"]);
            ratingLandscapeCount = ConvertUtility.ToInt32(info["RatingLandscapeCount"]);
            ratingPrice = ConvertUtility.ToDouble(info["RatingPrice"]);
            ratingPriceCount = ConvertUtility.ToInt32(info["RatingPriceCount"]);
            phone = Convert.ToString(info["Phone"]);
            imageGMap = Convert.ToString(info["ImageGMap"]);
            _area = Convert.ToString(info["areaId"]);
            _totalfollowUs = Convert.ToInt32(info["totalFollowUs"]);
        }
    }
}
